#该模块用于获取 首页0、综合1、科技2、娱乐3、社区4、财经5、开发6、报刊7 对应的dataframe
import requests
from bs4 import BeautifulSoup
import pandas as pd
import get_hotlist_0
import get_hotlist_1_7
import time

def get_hotlist(category):
    #首页
    if(category==0):
        return get_hotlist_0.get_hotlist()
    #网页1-7
    else:
        return get_hotlist_1_7.get_hotlist(category)

# time_start = time.time() #开始计时

# print(len(get_hotlist(7)))
# time_end = time.time()    #结束计时
# time_c= time_end - time_start   #运行所花时间
# print('running time: ',time_c,'s')




